using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
namespace cafechess.chessboard.demo
{
	/// <summary>
	/// Summary description for EditBoard.
	/// </summary>
	public class EditBoard : System.Windows.Forms.Form
	{
    private Cafechess.Chess.Controls.EditPosition editPosition1;
    private System.Windows.Forms.Button btnOk;
    private System.Windows.Forms.Button btnCancel;
		/// <summary>
		/// Required designer variable.
		/// </summary>
		private System.ComponentModel.Container components = null;

		public EditBoard()
		{
			//
			// Required for Windows Form Designer support
			//
			InitializeComponent();

			//
			// TODO: Add any constructor code after InitializeComponent call
			//
		}

		/// <summary>
		/// Clean up any resources being used.
		/// </summary>
		protected override void Dispose( bool disposing )
		{
			if( disposing )
			{
				if(components != null)
				{
					components.Dispose();
				}
			}
			base.Dispose( disposing );
		}

		#region Windows Form Designer generated code
		/// <summary>
		/// Required method for Designer support - do not modify
		/// the contents of this method with the code editor.
		/// </summary>
		private void InitializeComponent()
		{
      this.editPosition1 = new Cafechess.Chess.Controls.EditPosition();
      this.btnOk = new System.Windows.Forms.Button();
      this.btnCancel = new System.Windows.Forms.Button();
      this.SuspendLayout();
      // 
      // editPosition1
      // 
      this.editPosition1.FenNotation = "8/8/8/8/8/8/8/8 b - - 0 1";
      this.editPosition1.IsValidating = true;
      this.editPosition1.IsValidMove = true;
      this.editPosition1.Location = new System.Drawing.Point(8, 8);
      this.editPosition1.MovedFrom = null;
      this.editPosition1.MovedTo = null;
      this.editPosition1.Name = "editPosition1";
      this.editPosition1.SideToMove = false;
      this.editPosition1.Size = new System.Drawing.Size(360, 352);
      this.editPosition1.TabIndex = 0;
      // 
      // btnOk
      // 
      this.btnOk.DialogResult = System.Windows.Forms.DialogResult.OK;
      this.btnOk.Location = new System.Drawing.Point(208, 360);
      this.btnOk.Name = "btnOk";
      this.btnOk.TabIndex = 1;
      this.btnOk.Text = "OK";
      this.btnOk.Click += new System.EventHandler(this.btnOk_Click);
      // 
      // btnCancel
      // 
      this.btnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
      this.btnCancel.Location = new System.Drawing.Point(296, 360);
      this.btnCancel.Name = "btnCancel";
      this.btnCancel.TabIndex = 2;
      this.btnCancel.Text = "Cancel";
      // 
      // EditBoard
      // 
      this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
      this.ClientSize = new System.Drawing.Size(378, 392);
      this.ControlBox = false;
      this.Controls.Add(this.btnCancel);
      this.Controls.Add(this.btnOk);
      this.Controls.Add(this.editPosition1);
      this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
      this.Name = "EditBoard";
      this.Text = "EditBoard";
      this.ResumeLayout(false);

    }
		#endregion

    private void btnOk_Click(object sender, System.EventArgs e)
    {
    
    }
    public string FenNotation 
    {
      get{ return this.editPosition1.FenNotation;}
      set{ editPosition1.FenNotation = value;}
    }
    
	}
}
